package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@NoArgsConstructor
@Getter
@Setter
@TableName("tb_user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)//指定自增
    private Integer id;

    @TableField("openid")
    private String openid;

    @TableField("phone_number")
    private String phoneNumber;

    @TableField("password")
    private String password;

    @TableField("avatar_url")
    private String avatarUrl;

    @TableField("nick_name")
    private String nickName;

    @TableField("user_status")
    private Integer userStatus;

    @TableField("visit_count")
    private Integer visitCount;

    @TableField("user_type")
    private Integer userType;

    @TableField(exist = false)
    private LocalDateTime createDate;

}
